package com.garrett.demo.sys.dao;

import com.garrett.demo.sys.entity.Account;
import com.garrett.demo.sys.entity.SimsStudent;

public class UserDataBaseDemo implements UserDao{

    private Account onlyAccount = new Account("212006677","212006677","admin");

    @Override
    public SimsStudent getUserById(String id) {

        return null;
    }

    @Override
    public Account getUserByAccount(String account) {
        if (onlyAccount.getAccount().equals(account)) {
            return onlyAccount;
        }
        return null;
    }

    /**
     * 注册账户信息
     *
     * @param account 账户
     */
    @Override
    public void addAccount(Account account) {

    }

    /**
     * 添加用户信息
     *
     * @param userInfo 用户信息
     */
    @Override
    public void createUser(SimsStudent userInfo) {

    }
}
